import request from '@/utils/request'

// 查询供方注册及审核列表
export function listZcSupplierRegistration(query) {
  return request({
    url: '/sales/ZcSupplierRegistration/list',
    method: 'get',
    params: query
  })
}

// 查询供方注册及审核详细
export function getZcSupplierRegistration(id) {
  return request({
    url: '/sales/ZcSupplierRegistration/' + id,
    method: 'get'
  })
}
// 查询供方注册及审核详细
export function toSupplier(id) {
  return request({
    url: '/sales/ZcSupplierRegistration/toSupplier/' + id,
    method: 'post'
  })
}

// 新增供方注册及审核
export function addZcSupplierRegistration(data) {
  return request({
    url: '/sales/ZcSupplierRegistration',
    method: 'post',
    data: data
  })
}

// 修改供方注册及审核
export function updateZcSupplierRegistration(data) {
  return request({
    url: '/sales/ZcSupplierRegistration',
    method: 'put',
    data: data
  })
}
// 审核供方注册信息
export function auditZcSupplierRegistration(data) {
  return request({
    url: '/sales/ZcSupplierRegistration/audit',
    method: 'put',
    data: data
  })
}

// 删除供方注册及审核
export function delZcSupplierRegistration(id) {
  return request({
    url: '/sales/ZcSupplierRegistration/' + id,
    method: 'delete'
  })
}
